/**
 * @ClassName Demo08
 * @Description 三元运算符
 * @Author Li
 * @Date 2022/7/31 9:22
 * @ModifyDate 2022/7/31 9:22
 * @Version 1.0
 */
public class Demo08 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int max = (a > b ? a : b); // 取两者大的值
        System.out.println(max); // 20

        int j = (3 <= 4 ? 500 : 600);
        System.out.println(j); // 500
    }
}
